home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_10.lha
/
7_10
/
p_des.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
862b
|
35 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <process.h>
include <debug.h> /* DELETE */
rocess::~process()
Rprocessdest();
oid process::Rprocessdest()
if (debug) /*DELETE*/ cerr << "process" << this << "::~process()\n";
if (debug) /*DELETE*/ cerr << "\t" << this << "->t_curstate == " << ps_print(t_curstate) << "\n";
if (mustrecurse())
Rprocessdest();
else
{
if (t_curstate != TASK_TERMINATED)
error("process not terminated");
if (debug) /*DELETE*/ cerr << "\tt_thisprocess == " << t_thisprocess << "\n";
rmfromlist(this, &t_doneprocesses);
if (this == t_thisprocess)
{
delete (char*) t_thisprocess;
t_thisprocess = 0;
schedule();
}
if (debug) /*DELETE*/ cerr << "<<<< process" << this << "::~process()\n";
}